import request from '@/utils/request'

// 获取认证预警列表
export function cert(params) {
  return request({
    url: '/api/pds/pdsCert/cert-warning-records',
    method: 'get',
    params
  })
}
// 作废证书
export function cancePlan(id) {
  return request({
    url: '/api/pds/pdsCert/cance/' + id,
    method: 'get'
  })
}
export function standardPlan(id) {
  return request({
    url: '/api/pds/pdsCert/cance-standard/' + id,
    method: 'get'
  })
}
export function reportPlan(id) {
  return request({
    url: '/api/pds/pdsCert/cance-report/' + id,
    method: 'get'
  })
}
// 更新证书
export function update(data) {
  return request.post({
    url: '/api/pds/pdsCert/transfer/cert',
    data
  })
}
// 获取报告预警列表
export function report(params) {
  return request({
    url: '/api/pds/pdsCert/report-warning-records',
    method: 'get',
    params
  })
}
// 报告使用标准下拉框
export function CertStandards(params) {
  return request({
    url: '/api/pds/pdsCert/get-CertStandards',
    method: 'get',
    params
  })
}
// 报告更新提交
export function updatereport(data) {
  return request({
    url: '/api/pds/pdsCert/transfer/report',
    method: 'post',
    data
  })
}
// 获取报标准警列表
export function standard(params) {
  return request({
    url: '/api/pds/pdsCert/conf-standard-warning-records',
    method: 'get',
    params
  })
}
// 标准提交更新
export function updatestandard(data) {
  return request({
    url: '/api/pds/pdsCert/transfer/standard',
    method: 'post',
    data
  })
}

